<?php
//debug($userData);
$user=$userData['User'];

$notShow=array('password','created','modified','fullName','strName','UsName','display','id');
?>
<div class="content">
<table class="showFields">
    <tbody>
        <?php foreach ($user as $t => $u): if(!in_array($t, $notShow)):  ?>
        <tr>
            <th><?php echo $this->Camelcase->to_show_title($this->Camelcase->to_camel_case($t));  ?></th>
            <td><?php 
                if(substr($t,-2)=='id' && strlen($u)>0):
                    $table=$this->Camelcase->to_show_title($this->Camelcase->to_camel_case($t));
                    if (isset($userData[$table]['display'])):
                        echo $userData[$table]['display'];
                    endif;
                else:
                    echo $u;
                endif;
            ?></td>
            
        </tr>        
        <?php endif;endforeach;  ?>
        <?php 
            $jps=$userData['Jobprofile'];
            $i=1;
            foreach($jps as $jp):  ?>
        <tr>
            <th><?php __('Job Profile '.$i)  ?></th>
            <td>
               <?php echo $jp['title'];  ?>
            </td></tr>
            <?php $i++;endforeach;  ?>
    </tbody>
</table></div>